<template>

    <button @click="isShowDemo = !isShowDemo">切换显示隐藏</button>
    <br>
    <br>
    <br>
    <hr>
    <Demo v-if="isShowDemo" />
</template>

<script>
import { ref } from "vue";
import Demo from './components/Demo.vue';
export default {
    name: "App",
    components: {
        Demo
    },
    setup() {
        const isShowDemo = ref(true);

        return {
            isShowDemo,
        }
    },
};
</script>

<style>
#app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 60px;
}
</style>
